package xzit.gcxy.xxhzx.zhh.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 
 * @desc 配置科研类型
 *
 * @author zhh
 */
@Entity
@Table(name="z_sciencework_detail")
public class ScienceWorkDetailVO extends BaseVO {
	/**
	 * 科研类型
	 */
	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name ="swtypeid", referencedColumnName ="id")
	private ScienceWorkTypeVO scienceworktype;
	
	/**
	 * 科研权重
	 */
	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "swweightid", referencedColumnName ="id")
	private ScienceWorkWeightVO scienceworkweight;
	
	/**
	 * 教师
	 */
	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "gonghao", referencedColumnName ="gonghao")
	private TeacherInfoVO teacherInfoVO;
	
	/**
	 * 科研名称
	 */
	@Column(nullable = false, length = 50)
	private String swname;
	
	/**
	 * 时间
	 */
	@Column(nullable = false, length = 10)
	private String swdate;
	
	/**
	 * 分值
	 */
	@Column
	private Double score;

	/**
	 * 其它
	 */
	@Column(nullable = false, length = 200)
	private String other;

	/**
	 * 学院id
	 */
	@Column(nullable = false, length = 3)
	private int instituteid;
	
	public ScienceWorkTypeVO getScienceworktype() {
		return scienceworktype;
	}

	public void setScienceworktype(ScienceWorkTypeVO scienceworktype) {
		this.scienceworktype = scienceworktype;
	}

	public ScienceWorkWeightVO getScienceworkweight() {
		return scienceworkweight;
	}

	public void setScienceworkweight(ScienceWorkWeightVO scienceworkweight) {
		this.scienceworkweight = scienceworkweight;
	}

	public String getSwname() {
		return swname;
	}

	public void setSwname(String swname) {
		this.swname = swname;
	}

	public String getSwdate() {
		return swdate;
	}

	public void setSwdate(String swdate) {
		this.swdate = swdate;
	}

	public Double getScore() {
		return score;
	}

	public void setScore(Double score) {
		this.score = score;
	}

	public String getOther() {
		return other;
	}

	public void setOther(String other) {
		this.other = other;
	}

	public TeacherInfoVO getTeacherInfoVO() {
		return teacherInfoVO;
	}

	public void setTeacherInfoVO(TeacherInfoVO teacherInfoVO) {
		this.teacherInfoVO = teacherInfoVO;
	}

	public int getInstituteid() {
		return instituteid;
	}

	public void setInstituteid(int instituteid) {
		this.instituteid = instituteid;
	}
	
}
